package com.sushi.service;

import com.sushi.repository.entity.CommentEntity;
import com.baomidou.mybatisplus.extension.service.IService;
import com.sushi.response.ResponseBO;
import com.sushi.response.ResponsePageBO;
import com.sushi.response.CommentResp;
import com.sushi.request.CommentReq;
import com.sushi.request.CommentPageReq;

import java.util.List;

/**
 * 评论 服务类
 * @date 2023-05-02
 * @time 17:13:38
 * @author Administrator
 */
public interface CommentService extends IService<CommentEntity> {

    

    /**
     * 新增
     */
    public ResponseBO<CommentResp> add(CommentReq req);

    /**
     * 逻辑删除
     */
    public ResponseBO<CommentResp> logicRemove(CommentReq req);

    /**
     * 更新
     */
    public ResponseBO<CommentResp> updateByField(CommentReq req);

    /**
     * 列表
     */
    public ResponsePageBO<CommentResp> listByCondition(CommentPageReq req);

    /**
     * 详情
     */
    public ResponseBO<CommentResp> detail(CommentReq req);

    void fillChildren(List<CommentResp> commentTops);

    List<CommentResp> getPostComments(String postId);

    ;

}